package com.ma.common.dto;

import com.ma.entity.SysMenu;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class SysMenuVoDto {
    private static final long serialVersionUID = 1L;

    private Long id;

    private Date created;
    private Date updated;

    private Integer statu;
    /**
     * 父菜单ID，一级菜单为0
     */

    private Long parentId;


    private String name;

    /**
     * 菜单URL
     */
    private String path;

    /**
     * 授权(多个用逗号分隔，如：user:list,user:create)
     */
    private String perms;

    private String component;

    /**
     * 类型     0：目录   1：菜单   2：按钮
     */
    private Integer type;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 排序
     */
    private Integer orderNum;

    private List<SysMenuVoDto> children = new ArrayList<>();
}
